
package com.htd.htdapmcommon.enums;


public enum ProductCategoryEnum {
    PLATFORM("PLATFORM","中台");

	private String code;

	private String msg;

	private ProductCategoryEnum(String code, String msg){
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static String getValueByCode(String code){
        for(ProductCategoryEnum productCategoryEnum:ProductCategoryEnum.values()){
            if(code.equals(productCategoryEnum.getCode())) {
                return productCategoryEnum.getMsg();
            }
        } return null;
    }
}
